package net.javawind.t_api.utils;

import java.util.List;

import net.javawind.t_api.beans.QParameter;

import org.apache.http.HttpResponse;
import org.apache.http.nio.concurrent.FutureCallback;

/**
 * Http请求接口
 * 
 * @author <a href="http://blog.javawind.net">Xuefang Xu</a>
 * @Data 2010-01-21
 * @Version 1.0.0
 */

public interface QHttpClient {

	public String httpGet(String url, String queryString,
			FutureCallback<HttpResponse> callBack) throws Exception;

	public String httpPost(String url, String queryString,
			FutureCallback<HttpResponse> callBack) throws Exception;

	public String httpPostWithFile(String url, String queryString,
			List<QParameter> files, FutureCallback<HttpResponse> callBack)
			throws Exception;
}
